log: Fix a crash
authorColin Walters <walters@verbum.org>
Tue, 1 Nov 2011 16:24:34 +0000 (12:24 -0400)
committerColin Walters <walters@verbum.org>
Tue, 1 Nov 2011 16:24:34 +0000 (12:24 -0400)
src/ot-builtin-log.c

index a53d14b0db030db8ae729b0fcdae382284f5bf7d..c6d725b1c724729762670f01196a724879f76937 100644 (file)
@@ -42,7 +42,7 @@ ostree_builtin_log (int argc, char **argv, const char *prefix, GError **error)
   GOutputStream *pager = NULL;
   const char *rev;
   GVariant *commit = NULL;
-  char *resolved_rev;
+  char *resolved_rev = NULL;
 
   context = g_option_context_new ("- Show revision log");
   g_option_context_add_main_entries (context, options, NULL);